#include "StdAfx.h"
#include "pc_ParamToken.h"

#include "pf_ParseString2.h"

extern pf_ParseString po_CmdLineTokens;

//------------------------------------------------------- 
// SlashP Command Token Class derived from ParamBase
//-------------------------------------------------------

pc_ParamSlashPToken::pc_ParamSlashPToken(void)
{
}


pc_ParamSlashPToken::~pc_ParamSlashPToken(void)
{
}

void pc_ParamSlashPToken::pf_ExecuteCmd(CString psToken)
{
	int result;
	result=po_CmdLineTokens.pf_Process_SlashP(psToken); // this result no longer affects running - SlashPSet variable does now
	
}

//-------------------------------------------------------
//SlashW Command Token Class derived from ParamBase
//-------------------------------------------------------

pc_ParamSlashWToken::pc_ParamSlashWToken(void)
{
	
}


pc_ParamSlashWToken::~pc_ParamSlashWToken(void)
{
}

void pc_ParamSlashWToken::pf_ExecuteCmd(CString psToken)
{
	int result;
	result=po_CmdLineTokens.pf_Process_SlashW(psToken);
}

//-------------------------------------------------------
// SlashT Command Token Class derived from ParamBase
//-------------------------------------------------------

pc_ParamSlashTToken::pc_ParamSlashTToken(void)
{
}


pc_ParamSlashTToken::~pc_ParamSlashTToken(void)
{
}

void pc_ParamSlashTToken::pf_ExecuteCmd(CString psToken)
{
	int result;
	result=po_CmdLineTokens.pf_Process_SlashT(psToken);
}

int pi_NumCmds;		// probably will never be more then 10 commandline parameters, if there is change this...
pc_ParamBase *po_ParamBaseCmds[10];		// an array of cmd objects to initialize for the parameter list

void pf_SetupCmdParams(void)
{
	po_ParamBaseCmds[0] = new pc_ParamSlashPToken;
	po_ParamBaseCmds[0]->pc_CmdToken = 'p';

	po_ParamBaseCmds[1] = new pc_ParamSlashTToken;
	po_ParamBaseCmds[1]->pc_CmdToken = 't';

	po_ParamBaseCmds[2] = new pc_ParamSlashWToken;
	po_ParamBaseCmds[2]->pc_CmdToken = 'w';

	pi_NumCmds=3;   

}